package org.kele.sc2020.consumer.config;

import org.kele.sc2020.common.dto.KeleResult;

import java.util.function.Predicate;

public class KeleResultPredicate implements Predicate<Object> {
    @Override
    public boolean test(Object o) {
        return "调用失败".equals(o) || KeleResult.rpcFail().equals(o);
    }
}
